_ = require 'underscore'

arr1 = [3,5,6,8,9]

# 遍历数组 操作 返回处理后的数组
arr2 = _.map arr1,(value,key,reference)->
  return value+3
#console.log arr1,arr2

_.each arr1,(element,index,list)->
  console.log element+':'+index

sum=_.reduce arr1,((memo,num)->
  return memo+num
),0

console.log sum